package com.fadadianqi.logistics.sell.dao;

import com.fadadianqi.commons.BaseDAO;
import com.fadadianqi.logistics.sell.model.InOut;
import com.yeqiangwei.commons.util.Pagination;

import java.util.Date;
import java.util.List;

public interface InOutDAO extends BaseDAO<InOut> {

    int countAll();

    List<InOut> findAll(Pagination pagination);

    double totalMoney(int year);

    double inMoney(int year);

    double outMoney(int year);

    List<InOut> findBetween(Date date1, Date date2, Pagination pagination);

    Integer countBetween(Date date1, Date date2);

    public Double sumMoneyBetween(Date date1, Date date2);
}
